import BaseAccessControl from 'framework/accesscontrol/BaseAccessControl'
import environments from '@/util/environments';

export default class NoAuth extends BaseAccessControl {
  async run(to, from, next) {
    // return next();
    if (environments.use('account').isGuest()) {
      return next();
    } else {
      return next('/');
    }
  }
}
